<!DOCTYPE html>
<html lang="zh">

<head>
    <!-- {% load static %} -->
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>删除员工信息页面</title>
    <!-- <link rel="stylesheet" type="text/css" href="{% static 'css/delete_info.css' %}"> -->
    <link rel="stylesheet" type="text/css" href="../../static/css/delete_info.css">
    <!-- <script type="text/javascript" src="{% static 'js/delete_info.js' %}"></script> -->
    {% comment %} <script type="text/javascript" src="../../static/js/delete_info.js"></script> {% endcomment %}
    <script>
        function goto_index_page() {
            // 在当前页打开录入信息界面
            window.open("http://" + location.host + "/index/{{ user_name }}/", "_self");
        }
    </script>
</head>

<body>
    <header>
        <button id="goto_index" onclick="goto_index_page()">返回主页</button>
    </header>
    <main>
        <form id="employee_info_form" method="POST" action="../delete_info/">
            {% csrf_token %}
            <div id="condition_div">
                <p style="display: inline-block">查询条件（姓名）：</p>
                <br/>
                <input type="text" name="query_name" id="query_name" style="display: inline-block">
                <br/>
                {% if del_status == 0 %}
                <p style="display: inline-block">什么都没做</p>
                {% elif del_status == 1 %}
                <p style="display: inline-block">成功删除！</p>
                {% elif del_status == 2 %}
                <p style="display: inline-block">删除失败，查找不到</p>
                {% else %}
                <p style="display: inline-block">发生异常了</p>
                {% endif %}
            </div>
        </form>

    </main>
    <footer>
        <p>Copyright © 2021 zzll0909</p>
    </footer>
</body>

</html>